package _2025_3_16;

import java.util.concurrent.BlockingDeque;
import java.util.concurrent.LinkedBlockingDeque;

public class demo1 {
    public static void main(String[] args) {
        BlockingDeque<Integer> blockingDeque=new LinkedBlockingDeque<>();
        blockingDeque.add(1);
        blockingDeque.add(2);
        System.out.println(blockingDeque.toString());
        blockingDeque.poll();
        System.out.println(blockingDeque.toString());
        blockingDeque.offer(1);
        System.out.println(blockingDeque.toString());


    }
}
